#include <iostream>
#include <vector>
using namespace std;

int main()
{
    vector<int> cindata;
    int n = 0, a = 3;
    while (n < a)
    {
        int cind;
        cout << "请输入添加的整数：" << endl;
        cin >> cind;
        cindata.push_back(cind);
        n++;
        // cout << "是否继续添加数字？0-yes/1--no" << endl;
        // cin >> a;
    }

    int target;
    cout << "请输入目标结果:" << endl;
    cin >> target;

    int judgt = 0;
    int counter = cindata.size();
    // cout << counter;
    for (int first = 0; first < counter; first++)
    {
        for (int last = first + 1; last < counter; last++)
        {
            int test = cindata[first] + cindata[last];
            if (test == target)
            {
                printf("%d+%d=target:%d", cindata[first], cindata[last], target);
                judgt = 1;
                break;
            }
        }
    }

    if (judgt == 0)
        cout << "没有对应的结果";

    return 0;
}